import { useLocalStorageState } from 'ahooks';

export default function useStorageState(key, defaultValue) {
  return useLocalStorageState(key, { defaultValue, listenStorageChange: true });
}
